package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储商品与营销活动关联关系
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("marketing_goods")
public class MarketingGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID（外键）
     */
    private Long goodsId;

    /**
     * 提交时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 营销ID（外键）
     */
    private Long marketingId;


    public MarketingGoods(Long marketingId, Long goodId)
    {
        this.marketingId=marketingId;
        this.goodsId=goodId;
    }
}
